package com.tiany.tiange_study.GridActivity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.GridView;

import com.tiany.tiange_study.R;

public class GridViewActivity extends AppCompatActivity {
private GridView mGridView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_grid_view);
        mGridView=(GridView)findViewById(R.id.gv_1);
        mGridView.setAdapter(new MyGridViewAdapter(GridViewActivity.this));
    }
}